package be.technofuturTic;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class PersonneMapper implements RowMapper 
{

	public Object mapRow(ResultSet result, int arg1) throws SQLException 
	{
		int id = result.getInt("id");
		String nom = result.getString("nom");
		String prenom = result.getString("prenom");		
		return new Personne(id,nom,prenom);
	}

}
